RSS Amplifier

Rida Ayed · Jan 9, 2021

Test automation using GNU Make in ox-hugo

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

Amongst others, I run this script as part of my tests after a system update. #Initialize variables input = test/site/content-org/screenshot-subtree-export-example.org output = test/site/content/writing-hugo-blog-in-org-subtree-export.md cd /tmp # Cleanup rm -r ox-hugo # Clone latest repository git clone git@github.com:kaushalmodi/ox-hugo.git cd ox-hugo # Make change in org file sed -i…

Amongst others, I run this script as part of my tests after a system update.

#Initialize variables
input=test/site/content-org/screenshot-subtree-export-example.org
output=test/site/content/writing-hugo-blog-in-org-subtree-export.md
cd /tmp
# Cleanup
rm -r ox-hugo
# Clone latest repository
git clone git@github.com:kaushalmodi/ox-hugo.git
cd ox-hugo
# Make change in org file
sed -i "s/\(Kaushal\)/The awesome \1/" $input
# Simulate the export from org to markdown
make md1 ORG_FILE=$input
# Check if the changes appears in the
# created markdown (named after the title property in org)
grep Kaushal $output

test/site/content-org/screenshot-subtree-export-example.org ::
author = ["The awesome Kaushal Modi"]

Read on /posts/test_automation_gnu_make_ox_hugo/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.