X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Ftoolchain-test;h=cf8fa58e18231a416a49f2ab93d96e2cd12f9179;hb=2c652ca09b0c4618e6b859728e838d6d095c7ffc;hp=2b0a729ace7b45d3d8ffcc3958154c52bdcd573a;hpb=2ad910e22979500192ea43d5599ad003440744a4;p=hvlinux.git diff --git a/stage2/toolchain-test b/stage2/toolchain-test index 2b0a729..cf8fa58 100755 --- a/stage2/toolchain-test +++ b/stage2/toolchain-test @@ -1,16 +1,14 @@ #!/bin/bash -# Reading system configuration informations, functions and package versions. -source ../config/sysinfos -source ../functions -source ../config/packages-list +source ../functions/main # Testing toolchain cd /tmp echo 'main(){}' > dummy.c gcc dummy.c -Wl,--verbose &> dummy.log -if ! readelf -l a.out | grep 'Requesting program interpreter: /lib/ld-linux.*.so.2' 1> /dev/null 2>&1 ; then +if ! readelf -l a.out | \ + grep -q 'Requesting program interpreter: /lib/ld-linux.*.so.2'; then echo "String 'Requesting program interpreter: /lib/ld-linux.*.so.2' not found" exit 1 fi