diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-09-29 15:41:04 (GMT) |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-09-29 15:41:04 (GMT) |
commit | 190a60c025b4e1cfdc3b0d6832f096b16feffba9 (patch) | |
tree | 3e73d9624715df122a7a0015378716bfeb96b16f /tests/set-rpath.sh | |
parent | 4f3658be12a882a0e09bba96a01010c50b20ff5c (diff) | |
download | patchelf-190a60c025b4e1cfdc3b0d6832f096b16feffba9.zip patchelf-190a60c025b4e1cfdc3b0d6832f096b16feffba9.tar.gz patchelf-190a60c025b4e1cfdc3b0d6832f096b16feffba9.tar.bz2 |
* Add a failing test for `--set-rpath'. Test-driven development!
Diffstat (limited to 'tests/set-rpath.sh')
-rwxr-xr-x | tests/set-rpath.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/set-rpath.sh b/tests/set-rpath.sh new file mode 100755 index 0000000..e3c3fe4 --- /dev/null +++ b/tests/set-rpath.sh @@ -0,0 +1,22 @@ +#! /bin/sh -e + +oldInterpreter=$(../src/patchelf --print-interpreter ./simple) +echo "current interpreter is $oldInterpreter" + +rm -rf scratch +mkdir -p scratch + +cp main scratch/ +cp libfoo.so scratch/ +cp libbar.so scratch/ + +../src/patchelf --set-rpath $(pwd)/scratch scratch/main +../src/patchelf --set-rpath $(pwd)/scratch scratch/libfoo.so + +exitCode=0 +scratch/main || exitCode=$? + +if test "$exitCode" != 46; then + echo "bad exit code!" + exit 1 +fi |