summaryrefslogtreecommitdiffstats
path: root/pkgs/test
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/test')
-rw-r--r--pkgs/test/cross/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/test/cross/default.nix b/pkgs/test/cross/default.nix
index 622799106cd2..a907b9e2d45b 100644
--- a/pkgs/test/cross/default.nix
+++ b/pkgs/test/cross/default.nix
@@ -26,14 +26,20 @@ let
# We need to remove whitespace, unfortunately
# Windows programs use \r but Unix programs use \n
+ echo Running native-built program natively
+
# find expected value natively
${getExecutable hostPkgs pkgFun exec} ${args'} \
| dos2unix > $out/expected
+ echo Running cross-built program in emulator
+
# run emulator to get actual value
${emulator} ${getExecutable crossPkgs pkgFun exec} ${args'} \
| dos2unix > $out/actual
+ echo Comparing results...
+
if [ "$(cat $out/actual)" != "$(cat $out/expected)" ]; then
echo "${pkgName} did not output expected value:"
cat $out/expected