blob: 9e4ef006907bac26470cd7309d836fa4c1f5984f [file] [log] [blame]
Denys Vlasenko6acf5862012-03-18 23:27:23 +01001How to test strace build using Aboriginal Linux's system images.
2
3* Put a autoconf'ed strace source tree into hdc.dir/strace dir.
4For example, this should work:
5git clone git://strace.git.sourceforge.net/gitroot/strace/strace &&
Dmitry V. Levin3e69bdf2014-04-25 22:52:06 +00006cd strace && ./bootstrap
Denys Vlasenko6acf5862012-03-18 23:27:23 +01007
8* Run ./make-hdc-img.sh: it will generate ext2 image file,
9hdc.img, from hdc.dir/* data. This requires root for loop mount.
10
11* Download and unpack, or build from source and unpack
12one or more system-image-ARCH directories into this directory
13(the one which contains this README).
14
15* Run: ./parallel-build-hdc-img.sh system-image-DIR1 system-image-DIR2...
16(background it if you don't want to see "Waiting to finish" thing).
17This runs a strace build in several qemu virtual machines in parallel.
18
19* Observe system-image-*.log file(s) with growing log of strace build.
20
21There is no automated detection of errors for now: you need to examine
22logs yourself.
23
Dmitry V. Levin868a6662015-01-15 17:01:32 +000024For me, the following system images worked (tests passed/skipped/failed):
Dmitry V. Levin07d70f02015-03-05 19:36:52 +000025system-image-armv4l - 14/14/1 (failed: stat32-v.test - wrong stat decoding, sun_path.test - libc error)
Dmitry V. Levin868a6662015-01-15 17:01:32 +000026system-image-armv4tl - 15/14/0
27system-image-armv5l - 15/14/0
28system-image-armv6l - 15/14/0
29system-image-i486 - 14/14/1 (failed: count.test - grep segfault)
30system-image-i586 - 14/14/1 (failed: count.test - grep segfault)
31system-image-i686 - 14/14/1 (failed: count.test - grep segfault)
32system-image-mips - 15/14/0
33system-image-mipsel - 15/14/0
Dmitry V. Levin07d70f02015-03-05 19:36:52 +000034system-image-powerpc - 13/14/2 (failed: ipc_sem.test - ipc_sem segfault)
35system-image-sparc - 13/14/2 (failed: ipc_sem.test - ipc_sem segfault)
Dmitry V. Levin868a6662015-01-15 17:01:32 +000036system-image-x86_64 - 14/15/0
Denys Vlasenko6acf5862012-03-18 23:27:23 +010037
38And these did not:
Dmitry V. Levin868a6662015-01-15 17:01:32 +000039system-image-m68k - qemu-system-m68k: -M q800: Unsupported machine type
40system-image-mips64 - init dies before reaching /mnt/init
Denys Vlasenko6acf5862012-03-18 23:27:23 +010041system-image-sh4 - hdc does not mount (no support for 2 disks)
Denys Vlasenko602d7172015-03-24 20:54:26 +010042
43
44To debug a build problem in one of sandboxes, change keep_hdb
45to "keep_hdb=true" in parallel-build-hdc-img.sh
46
47This preserves system-image-DIR1/hdb.img after the build,
48so you can go into system-image-DIR1 and run
49"HDB=hdb.img ./dev-environment.sh" to debug the problem.