mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
16 lines
428 B
Bash
16 lines
428 B
Bash
# Copyright (c) 2019-2021, see AUTHORS. Licensed under MIT License, see LICENSE.
|
|
|
|
@test 'GNU Make is functional' {
|
|
TEMPDIR=/tmp/.tmp-gnumake.$$
|
|
mkdir -p "$TEMPDIR"
|
|
echo -e 'x:\n\techo desired output > x' > "$TEMPDIR/Makefile"
|
|
|
|
"$(nix-build "<nixpkgs>" --no-out-link --attr gnumake)/bin/make" -C "$TEMPDIR" x
|
|
|
|
[[ -e "$TEMPDIR/x" ]]
|
|
[[ "$(cat "$TEMPDIR/x")" == 'desired output' ]]
|
|
}
|
|
|
|
teardown() {
|
|
rm -r "$TEMPDIR"
|
|
}
|