aboutsummaryrefslogtreecommitdiff
path: root/etc/committer.scm.in
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2023-01-22 01:00:01 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2023-01-22 01:00:15 +0100
commit128c926ffa8528322ddc8c82154efd1ccbf8a001 (patch)
treea91eaf2a46a8c2e5933e5c40457fb0f3e4a49087 /etc/committer.scm.in
parent8e1cca32b938cef0812ce042c6c2e8bccb326ec7 (diff)
downloadguix-128c926ffa8528322ddc8c82154efd1ccbf8a001.tar.gz
guix-128c926ffa8528322ddc8c82154efd1ccbf8a001.zip
gnu: rsnapshot: Update to 1.4.5.
* gnu/packages/backup.scm (rsnapshot): Update to 1.4.5.
Diffstat (limited to 'etc/committer.scm.in')
0 files changed, 0 insertions, 0 deletions
icense for more details. # # You should have received a copy of the GNU General Public License # along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. # # Test the `guix repl' command-line utility. # guix repl --version test_directory="`mktemp -d`" export test_directory trap 'chmod -Rf +w "$test_directory"; rm -rf "$test_directory"' EXIT tmpfile="$test_directory/foo.scm" rm -f "$tmpfile" trap 'rm -f "$tmpfile"' EXIT module_dir="t-guix-repl-$$" mkdir "$module_dir" trap 'rm -rf "$module_dir"' EXIT cat > "$tmpfile"<<EOF (use-modules (guix packages) (gnu packages base)) (format #t "~a\n" (package-name coreutils)) EOF test "`guix repl "$tmpfile"`" = "coreutils" # Make sure that the file can also be loaded when passed as a relative file # name. (cd "$(dirname "$tmpfile")"; test "$(guix repl "$(basename "$tmpfile")")" = "coreutils") cat > "$module_dir/foo.scm"<<EOF (define-module (foo) #:use-module (guix packages) #:use-module (gnu packages base)) (define-public dummy (package (inherit hello) (name "dummy") (version "42") (synopsis "dummy package") (description "dummy package. Only used for testing purposes."))) EOF cat > "$tmpfile"<<EOF (use-modules (guix packages) (foo)) (format #t "~a\n" (package-version dummy)) EOF test "`guix repl "$tmpfile" -L "$module_dir"`" = "42" cat > "$tmpfile"<<EOF (format #t "~a\n" (cdr (command-line))) EOF test "`guix repl -- "$tmpfile" -a b --input=foo.txt`" = "(-a b --input=foo.txt)" cat > "$tmpfile"<<EOF #!$(type -P env) -S guix repl -- !# (format #t "~a\n" (cdr (command-line))) EOF chmod 755 $tmpfile test "`"$tmpfile" -a b --input=foo.txt`" = "(-a b --input=foo.txt)"