annotate sources/control-images/busybox-test.sh @ 1403:42698b9646c2

Add m68k back.
author Rob Landley <rob@landley.net>
date Mon, 27 Jun 2011 07:36:56 -0500
parents 35dc1da8988c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1115
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
1 #!/bin/bash
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
2
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
3 # Run the busybox test suite.
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
4
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
5 source sources/include.sh || exit 1
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
6
1274
b41dbea3ba14 When building control images, the working directory should be in build/control-images.
Rob Landley <rob@landley.net>
parents: 1115
diff changeset
7 WORK="$BUILD/control-images/busybox-test" && blank_tempdir "$WORK"
1115
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
8
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
9 # Don't download busybox, it's got to already be there in standard sources.
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
10
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
11 setupfor busybox
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
12 cd "$TOP"
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
13
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
14 cat > "$WORK"/init << 'EOF' || dienow
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
15 #!/bin/bash
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
16
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
17 echo === $HOST Run busybox test suite
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
18
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
19 cp -sfR /mnt/busybox busybox && cd busybox &&
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
20 make defconfig &&
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
21 ln -s /bin/busybox busybox &&
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
22 cd testsuite &&
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
23 ./runtest &&
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
24 cd .. &&
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
25 rm -rf busybox || exit 1
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
26
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
27 sync
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
28
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
29 EOF
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
30
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
31 chmod +x "$WORK"/init || dienow
81bae2e7bc66 Control image to run the busybox test suite.
Rob Landley <rob@landley.net>
parents:
diff changeset
32
1280
35dc1da8988c Change control image scripts so they always build in build/control-images, and put the extracted and archived (squashfs) versions in the same directory the way the other build scripts do. Also use utility_functions.sh as appropriate.
Rob Landley <rob@landley.net>
parents: 1275
diff changeset
33 mksquashfs "$WORK" "$WORK.hdc" -noappend -all-root