Add support for rust-coreutils in integration test script.
This commit is contained in:
parent
8099a3ed30
commit
f1bd7f2d1b
3
org_mode_samples/regular_link/simple.org
Normal file
3
org_mode_samples/regular_link/simple.org
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[[https://fizz.buzz/]]
|
||||||
|
|
||||||
|
[[https://fizz.buzz][super cool website]]
|
@ -4,6 +4,8 @@ set -euo pipefail
|
|||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
REALPATH=$(command -v uu-realpath || command -v realpath)
|
||||||
|
|
||||||
samples_dir=$(readlink -f "$DIR/../org_mode_samples")
|
samples_dir=$(readlink -f "$DIR/../org_mode_samples")
|
||||||
|
|
||||||
function get_test_names {
|
function get_test_names {
|
||||||
@ -11,7 +13,7 @@ function get_test_names {
|
|||||||
do
|
do
|
||||||
if [ -e "$test_file" ]; then
|
if [ -e "$test_file" ]; then
|
||||||
test_file_full_path=$(readlink -f "$test_file")
|
test_file_full_path=$(readlink -f "$test_file")
|
||||||
relative_to_samples=$(realpath --relative-to "$samples_dir" "$test_file_full_path")
|
relative_to_samples=$($REALPATH --relative-to "$samples_dir" "$test_file_full_path")
|
||||||
without_extension="${relative_to_samples%.org}"
|
without_extension="${relative_to_samples%.org}"
|
||||||
echo "${without_extension/\//_}" | tr '[:upper:]' '[:lower:]'
|
echo "${without_extension/\//_}" | tr '[:upper:]' '[:lower:]'
|
||||||
else
|
else
|
||||||
|
@ -26,6 +26,7 @@ mod plain_list;
|
|||||||
mod plain_text;
|
mod plain_text;
|
||||||
mod planning;
|
mod planning;
|
||||||
mod property_drawer;
|
mod property_drawer;
|
||||||
|
mod regular_link;
|
||||||
pub mod sexp;
|
pub mod sexp;
|
||||||
mod source;
|
mod source;
|
||||||
mod table;
|
mod table;
|
||||||
|
11
src/parser/regular_link.rs
Normal file
11
src/parser/regular_link.rs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
use super::Context;
|
||||||
|
use super::RegularLink;
|
||||||
|
use crate::error::Res;
|
||||||
|
|
||||||
|
#[tracing::instrument(ret, level = "debug")]
|
||||||
|
pub fn regular_link<'r, 's>(
|
||||||
|
context: Context<'r, 's>,
|
||||||
|
input: &'s str,
|
||||||
|
) -> Res<&'s str, RegularLink<'s>> {
|
||||||
|
todo!()
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user