Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more nifgen systems tests, and retrofit nifgen examples #600

Merged
merged 6 commits into from
Nov 16, 2017

Conversation

injaleea
Copy link
Contributor

@injaleea injaleea commented Nov 15, 2017

[X] This contribution adheres to CONTRIBUTING.md.

[ ] I've updated CHANGELOG.md if applicable.

[X] I've added tests applicable for this pull request

What does this Pull Request accomplish?

Adding more system tests for nifgen

  • test_write_binary_waveform
  • test_set_waveform_next_write_position
  • test_export_signal
  • test_write_waveform_from_filei64

Fixed examples to have emus per #553

List issues fixed by this Pull Request below, if any.

Partial towards #484

What testing has been done?

system test, tox



def test_write_waveform_from_filei64(session):
session.arb_sample_rate = 40000000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no need to set sample rate here. Only do the absolute minimum you need to.

session.arb_sample_rate = 40000000
session.create_waveform_from_file_i16(os.path.join(os.getcwd(), 'systemtest_dependencies', 'SineI16BigEndian_1000.bin'), nifgen.ByteOrder.BIG_ENDIAN) # Enable after issue #538 fixed
sample_rate = session.arb_sample_rate
assert sample_rate == 40000000'''
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move the closing ''' to its own line to match how you open it.


def test_write_waveform_from_filei64(session):
session.arb_sample_rate = 40000000
session.create_waveform_from_file_i16(os.path.join(os.getcwd(), 'systemtest_dependencies', 'SineI16BigEndian_1000.bin'), nifgen.ByteOrder.BIG_ENDIAN) # Enable after issue #538 fixed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would directly put the file next to the system test script, I don't think we need a separate folder.
Alternatively, there may be a really compact way to create this file from the the test when we need it, you could put it in the temp directory.

@injaleea injaleea changed the title adding more system tests and dependency file for nifgen nifgen systems tests and example fixing examples Nov 16, 2017
@marcoskirsch marcoskirsch changed the title nifgen systems tests and example fixing examples Add more nifgen systems tests, and retrofit nifgen examples Nov 16, 2017
@marcoskirsch
Copy link
Member

I improved the title, and changed the description so that #484 isn't automatically closed. Watch out for those!

@marcoskirsch marcoskirsch merged commit 9ddb88e into master Nov 16, 2017
@marcoskirsch marcoskirsch deleted the nifgen_systemtests branch November 16, 2017 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants