strace/qemu_multiarch_testing
Dmitry V. Levin 003c02745f Wipe out references to defunct sourceforge
The old location of strace-devel mailing list is defunct, it used to
lose email messages and sometimes did not deliver any mails for days.

The mailing list has been moved to strace-devel@lists.strace.io.

* CREDITS.in: Update the mailing list address.
(Zhang Le): Update email address.
* README: Update the mailing list address.
* README.md: Likewise.
* configure.ac (AC_INIT): Likewise.
* strace.1.in (.SH REPORTING BUGS): Likewise.
* strace-log-merge.1.in (.SH REPORTING BUGS): Likewise.
* sched.c (SYS_FUNC(sched_getattr)): Update the mailing list reference.
* tests/scno_tampering.sh: Likewise.
* qemu_multiarch_testing/README: Update git repository address.
* NEWS: Mention the change of the mailing list address.

Closes: https://github.com/strace/strace/issues/38
2018-02-23 23:18:56 +00:00
..
hdc.dir qemu_multiarch_testing: update 2015-01-16 16:26:40 +00:00
.gitignore qemu_multiarch_testing: update 2015-01-16 16:26:40 +00:00
make-hdc-img.sh qemu_multiarch_testing: update 2015-01-16 16:26:40 +00:00
parallel-build-hdc-img.sh qemu_multiarch_testing/*: make it easier to do debug in sandboxes 2015-03-24 20:54:26 +01:00
README Wipe out references to defunct sourceforge 2018-02-23 23:18:56 +00:00

How to test strace build using Aboriginal Linux's system images.

* Put a autoconf'ed strace source tree into hdc.dir/strace dir.
For example, this should work:
git clone https://github.com/strace/strace && cd strace && ./bootstrap

* Run ./make-hdc-img.sh: it will generate ext2 image file,
hdc.img, from hdc.dir/* data. This requires root for loop mount.

* Download and unpack, or build from source and unpack
one or more system-image-ARCH directories into this directory
(the one which contains this README).

* Run: ./parallel-build-hdc-img.sh system-image-DIR1 system-image-DIR2...
(background it if you don't want to see "Waiting to finish" thing).
This runs a strace build in several qemu virtual machines in parallel.

* Observe system-image-*.log file(s) with growing log of strace build.

There is no automated detection of errors for now: you need to examine
logs yourself.

For me, the following system images worked (tests passed/skipped/failed):
system-image-armv4l  - 14/14/1 (failed: stat32-v.test - wrong stat decoding, sun_path.test - libc error)
system-image-armv4tl - 15/14/0
system-image-armv5l  - 15/14/0
system-image-armv6l  - 15/14/0
system-image-i486    - 14/14/1 (failed: count.test - grep segfault)
system-image-i586    - 14/14/1 (failed: count.test - grep segfault)
system-image-i686    - 14/14/1 (failed: count.test - grep segfault)
system-image-mips    - 15/14/0
system-image-mipsel  - 15/14/0
system-image-powerpc - 13/14/2 (failed: ipc_sem.test - ipc_sem segfault)
system-image-sparc   - 13/14/2 (failed: ipc_sem.test - ipc_sem segfault)
system-image-x86_64  - 14/15/0

And these did not:
system-image-m68k    - qemu-system-m68k: -M q800: Unsupported machine type
system-image-mips64  - init dies before reaching /mnt/init
system-image-sh4     - hdc does not mount (no support for 2 disks)


To debug a build problem in one of sandboxes, change keep_hdb
to "keep_hdb=true" in parallel-build-hdc-img.sh

This preserves system-image-DIR1/hdb.img after the build,
so you can go into system-image-DIR1 and run
"HDB=hdb.img ./dev-environment.sh" to debug the problem.