equal
deleted
inserted
replaced
26 COMPONENT_SRC=$2 |
26 COMPONENT_SRC=$2 |
27 |
27 |
28 export PATH=/bin:$PATH |
28 export PATH=/bin:$PATH |
29 |
29 |
30 # Replace the path to that under component build dir |
30 # Replace the path to that under component build dir |
31 gsed -i.orig 's|\"etc\"|'\""$BUILD_DIR"'/etc\"|g' $COMPONENT_SRC/src/tests/test6.c |
31 gsed -i 's|\"etc\"|'\""$BUILD_DIR"'/etc\"|g' $COMPONENT_SRC/src/tests/test6.c |
32 rm $COMPONENT_SRC/src/tests/test6.c.orig |
32 gsed -i 's|\"etc\"|'\""$BUILD_DIR"'/etc\"|g' $COMPONENT_SRC/src/tests/test8.c |
33 gsed -i.orig 's|\"etc\"|'\""$BUILD_DIR"'/etc\"|g' $COMPONENT_SRC/src/tests/test8.c |
|
34 rm $COMPONENT_SRC/src/tests/test8.c.orig |
|
35 |
33 |
36 # Make dirs under component build dir and copy necessary files under them |
34 # Make dirs under component build dir and copy necessary files under them |
37 rm -rf $BUILD_DIR/etc/hsm.d |
35 rm -rf $BUILD_DIR/etc/hsm.d |
38 mkdir $BUILD_DIR/etc/hsm.d |
36 mkdir $BUILD_DIR/etc/hsm.d |
39 cp $COMPONENT_SRC/etc/hsm.d/etoken-engine.xml $BUILD_DIR/etc/hsm.d |
37 cp $COMPONENT_SRC/etc/hsm.d/etoken-engine.xml $BUILD_DIR/etc/hsm.d |
51 cp -R $COMPONENT_SRC/etc/.libpki $BUILD_DIR/etc |
49 cp -R $COMPONENT_SRC/etc/.libpki $BUILD_DIR/etc |
52 |
50 |
53 # Make results dir under component build dir |
51 # Make results dir under component build dir |
54 rm -rf $BUILD_DIR/results |
52 rm -rf $BUILD_DIR/results |
55 mkdir $BUILD_DIR/results |
53 mkdir $BUILD_DIR/results |
|
54 |
|
55 # Build test scripts |
|
56 gmake -C $BUILD_DIR/src/tests check-am |
|
57 |
|
58 # Test scripts need escapes because they are executed indirectly |
|
59 for i in {1..9} |
|
60 do |
|
61 gsed -i 's|$libtool_install_magic|$$libtool_install_magic|g' $BUILD_DIR/src/tests/test$i |
|
62 gsed -i 's|$libtool_execute_magic|$$libtool_execute_magic|g' $BUILD_DIR/src/tests/test$i |
|
63 gsed -i 's|:$LD_LIBRARY_PATH|:$$LD_LIBRARY_PATH|g' $BUILD_DIR/src/tests/test$i |
|
64 done |