Skip to content

Commit 69835ae

Browse files
committed
debug
1 parent 0692e36 commit 69835ae

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
cp bb.exe "$(which bb)"
5454
- name: bb test
5555
run: |
56-
bb test -n babashka.bbin.scripts.git-dir-test
56+
bb test
5757
env:
5858
GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no -i ./test-resources/id_ed25519_bbin_test_lib_private
5959
GITLIBS_DEBUG: true

test/babashka/bbin/scripts/git_dir_test.clj

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -59,38 +59,38 @@
5959
(is (= bbin-test-lib-private out))
6060
(is (fs/exists? bin-file))
6161
(is (= "Hello world!" (tu/run-bin-script 'hello))))))
62-
;
63-
;(def git-http-url-lib
64-
; '{:lib org.babashka.bbin/script-1039504783-https-github-com-rads-bbin-test-lib-git
65-
; :coords {:git/url "https://github.com/rads/bbin-test-lib.git"
66-
; :git/sha "cefb15e3320dd4c599e8be62f7a01a00b07e2e72"}})
67-
;
68-
;(deftest install-from-git-http-url-test
69-
; (testing "install https://*.git"
70-
; (tu/reset-test-dir)
71-
; (dirs/ensure-bbin-dirs {})
72-
; (let [cli-opts {:script/lib (get-in git-http-url-lib [:coords :git/url])}
73-
; out (tu/run-install cli-opts)
74-
; bin-file (fs/file (dirs/bin-dir nil) "hello")]
75-
; (is (= git-http-url-lib out))
76-
; (is (fs/exists? bin-file))
77-
; (is (= "Hello world!" (tu/run-bin-script 'hello))))))
78-
;
79-
;(def git-ssh-url-lib
80-
; '{:lib org.babashka.bbin/script-1166637990-git-bitbucket-org-radsmith-bbin-test-lib-private-git
81-
; :coords {:git/url "git@bitbucket.org:radsmith/bbin-test-lib-private.git"
82-
; :git/sha "cefb15e3320dd4c599e8be62f7a01a00b07e2e72"}})
83-
;
84-
;(deftest install-from-git-ssh-url-test
85-
; (testing "install git@*:*.git"
86-
; (tu/reset-test-dir)
87-
; (dirs/ensure-bbin-dirs {})
88-
; (let [cli-opts {:script/lib (get-in git-ssh-url-lib [:coords :git/url])}
89-
; out (tu/run-install cli-opts)
90-
; bin-file (fs/file (dirs/bin-dir nil) "hello")]
91-
; (is (= git-ssh-url-lib out))
92-
; (is (fs/exists? bin-file))
93-
; (is (= "Hello world!" (tu/run-bin-script 'hello))))))
62+
63+
(def git-http-url-lib
64+
'{:lib org.babashka.bbin/script-1039504783-https-github-com-rads-bbin-test-lib-git
65+
:coords {:git/url "https://github.com/rads/bbin-test-lib.git"
66+
:git/sha "cefb15e3320dd4c599e8be62f7a01a00b07e2e72"}})
67+
68+
(deftest install-from-git-http-url-test
69+
(testing "install https://*.git"
70+
(tu/reset-test-dir)
71+
(dirs/ensure-bbin-dirs {})
72+
(let [cli-opts {:script/lib (get-in git-http-url-lib [:coords :git/url])}
73+
out (tu/run-install cli-opts)
74+
bin-file (fs/file (dirs/bin-dir nil) "hello")]
75+
(is (= git-http-url-lib out))
76+
(is (fs/exists? bin-file))
77+
(is (= "Hello world!" (tu/run-bin-script 'hello))))))
78+
79+
(def git-ssh-url-lib
80+
'{:lib org.babashka.bbin/script-1166637990-git-bitbucket-org-radsmith-bbin-test-lib-private-git
81+
:coords {:git/url "git@bitbucket.org:radsmith/bbin-test-lib-private.git"
82+
:git/sha "cefb15e3320dd4c599e8be62f7a01a00b07e2e72"}})
83+
84+
(deftest install-from-git-ssh-url-test
85+
(testing "install git@*:*.git"
86+
(tu/reset-test-dir)
87+
(dirs/ensure-bbin-dirs {})
88+
(let [cli-opts {:script/lib (get-in git-ssh-url-lib [:coords :git/url])}
89+
out (tu/run-install cli-opts)
90+
bin-file (fs/file (dirs/bin-dir nil) "hello")]
91+
(is (= git-ssh-url-lib out))
92+
(is (fs/exists? bin-file))
93+
(is (= "Hello world!" (tu/run-bin-script 'hello))))))
9494

9595
(defn read-all
9696
[file]

0 commit comments

Comments
 (0)