-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move integration tests to separate folder
- Loading branch information
Showing
11 changed files
with
86 additions
and
203 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,12 @@ | ||
#[cfg(test)] | ||
pub mod utils { | ||
use anyhow::Result; | ||
use git_repository::{open, Repository, ThreadSafeRepository}; | ||
|
||
pub fn repo(name: &str) -> Result<Repository> { | ||
let name = name.to_string(); | ||
let repo_path = git_testtools::scripted_fixture_repo_read_only(name).unwrap(); | ||
let safe_repo = ThreadSafeRepository::open_opts(repo_path, open::Options::isolated())?; | ||
Ok(safe_repo.to_thread_local()) | ||
} | ||
} |
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,3 @@ | ||
pub mod cli; | ||
pub mod info; | ||
pub mod ui; |
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 |
---|---|---|
@@ -1,21 +1,6 @@ | ||
#!/bin/bash | ||
set -eu -o pipefail | ||
|
||
case "${1}" in | ||
verilog) | ||
LANG_DIR="verilog" | ||
LANG_EXT="vg" | ||
;; | ||
*) | ||
echo "OOPS, ARGUMENT EXPECTED TO BE ONE OF THESE VALUES:" | ||
echo " verilog for language type verilog" | ||
exit | ||
;; | ||
esac | ||
|
||
mkdir ${LANG_DIR} | ||
cd ${LANG_DIR} | ||
|
||
git init -q | ||
|
||
# BOTH NAME AND EMAIL ARE NEEDED FOR RECOGNITION | ||
|
@@ -31,20 +16,20 @@ git config --local --add "author.email" "[email protected]" | |
git remote add origin https://github.com/user/repo.git | ||
|
||
git checkout -b main | ||
touch code.${LANG_EXT} | ||
git add code.${LANG_EXT} | ||
touch code.rs | ||
git add code.rs | ||
git commit -q -m c1 --author="Author One <[email protected]>" | ||
git tag tag1 | ||
echo hello >> code.${LANG_EXT} | ||
git add code.${LANG_EXT} | ||
echo hello >> code.rs | ||
git add code.rs | ||
git commit -q -m c2 --author="Author Two <[email protected]>" | ||
echo world >> code.${LANG_EXT} | ||
git add code.${LANG_EXT} | ||
echo world >> code.rs | ||
git add code.rs | ||
git commit -q -m c3 --author="Author Three <[email protected]>" | ||
echo something >> code.${LANG_EXT} | ||
git add code.${LANG_EXT} | ||
echo something >> code.rs | ||
git add code.rs | ||
git commit -q -m c4 --author="Author Four <[email protected]>" | ||
echo more >> code.${LANG_EXT} | ||
echo more >> code.rs | ||
|
||
echo "[dependencies]" > Cargo.toml | ||
echo 'anyhow = "1.0.65"' >> Cargo.toml | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.