-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/deps: Test of typical dependencies example
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
. tests/common.sh | ||
|
||
# Test Bob dependencies. | ||
# TODO Check that we're caching dependencies correctly (i.e. same version same cache, different versions different cache). | ||
|
||
# Test of regular usage of dependencies. | ||
|
||
cp tests/deps/build.normal.fl tests/deps/build.fl | ||
rm -rf tests/deps/.bob tests/deps/dep1/.bob tests/deps/dep2/.bob | ||
|
||
out=$(bob -C tests/deps run dep2 2>&1) | ||
|
||
if [ $? != 0 ]; then | ||
echo "Failed to run binary pre-installed by dependency: $out" >&2 | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-License-Identifier: MIT | ||
// Copyright (c) 2024 Aymeric Wibo | ||
|
||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
int main(void) { | ||
printf("Hello, world!\n"); | ||
return EXIT_SUCCESS; | ||
} |